package com.sihan.swvp.service.rw;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sihan.swvp.dao.zc.ZcglDao;
import com.sihan.swvp.entity.zc.Zcgl;
@Service
public class ZcglService{

	@Autowired
	private ZcglDao zcglDao;
	
	public List<Map<String, Object>> getZcgl(Map<String, Object> params) {
		return zcglDao.getZcgl(params);
	}
	public void addZcgl(Zcgl bean) {
		zcglDao.addZcgl(bean);
	}
	public void updateZcgl(Zcgl bean) {
		zcglDao.updateZcgl(bean);
	}
	public int deleteZcgl(Integer id,String leaf) {
		return zcglDao.deleteZcgl(id,leaf);
	}
	
	/**
	 * 验证编码和名称
	 * @param code
	 * @param dsdwName
	 * @return
	 */
	public Integer getZcglValidate(Map<String, Object> param) {
		return zcglDao.getZcglValidate(param);
	}
}
